<table class="table table-hover">
    <thead>
    <tr>
        <th>班级id</th>
        <th>班级名称</th>
        <th>省</th>
        <th>市</th>
        <th>区</th>
        <th>地址</th>
        <th>所在学校</th>
        <th>订阅人数</th>
        <th>学生人数</th>
    </tr>
    </thead>

    <tbody>
    @foreach ($data as $classes)
        <tr>
            <td>
                {{ $classes['class_id'] }}
            </td>
            <td>
                {{ $classes['name'] }}
            </td>
            <td>
                {{ @$classes['province'] }}
            </td>
            <td>
                {{ @$classes['city'] }}
            </td>
            <td>
                {{ @$classes['district'] }}
            </td>
            <td>
                {{ @$classes['address'] }}
            </td>
            <td>
                {{ $classes['school']['school_name'] }}
            </td>
            <td>
                {{ $classes['subscribe_count'] }}
            </td>
            <td>
                {{ $classes['student_count'] }}
            </td>
        </tr>
    @endforeach
    </tbody>
</table>